package net.zjitc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("sp_manager")
public class Manger {
    @TableId(value = "mg_id",type = IdType.AUTO)
    private Integer id;
    @TableField("mg_name")
    private String username;
    @TableField("mg_pwd")
    private String password;
    @TableField("mg_time")
    private Integer mg_time;
    @TableField("role_id")
    private Integer role_id;
    @TableField("mg_mobile")
    private String mobile;
    @TableField("mg_email")
    private String email;
    @TableField("mg_state")
    private Integer type;

    public void setMgTime(Integer mg_time) {
        this.mg_time = mg_time;
    }

    public void setRoleId(Integer role_id) {
        this.role_id = role_id;
    }
}